﻿using System.Collections.Generic;

namespace HobSoft.SoccerBet2014.Domain.Implementation.Service
{
    using Domain.DataService;
    using Domain.Core;
    using IRepositories;
    using Models;

    public class BetSettingService : SampleDataService, IBetSettingService
    {

        protected readonly IBookmakerRepository bookmakerRepository;

        public BetSettingService(IBookmakerRepository _bookmakerRepository)
        {
            bookmakerRepository = _bookmakerRepository;
            RegisterRepository(typeof(Bookmaker), bookmakerRepository);
        }

        public IList<Bookmaker> GetBookmaker()
        {
            return bookmakerRepository.GetMany(b => b.Available == true);
        }
    }
}
